import React, {Component} from 'react'
import {connect} from 'react-redux'

import {getuserBankList} from "../redux/actions/userAction"
import Withdrawcompont from "../components/withdrawcompont"

export class WithDraw extends Component {
  constructor (props){
   super(props)
}
componentWillMount(){
  const {dispatch} = this.props
  dispatch(getuserBankList())
}
  componentDidUpdate(){
  }
   render() {
     const {user} = this.props
    //  console.log(user.get("userbankLists")[0],"11");     
   return <Withdrawcompont {...this.props}></Withdrawcompont>
   }
}
function mapStateToProps(state) {
  return {
    user: state.user
  }
}
export default connect(mapStateToProps)(WithDraw)